/*
 * @Author: szx
 * @Date: 2021-11-02 12:52:00
 * @LastEditTime: 2021-11-02 12:58:18
 * @Description:
 * @FilePath: \leetcode\200-299\237\237.cpp
 */
#include <iostream>
using namespace std;

struct ListNode {
    int val;
    ListNode* next;
    ListNode(int x) : val(x), next(NULL) {}
};

class Solution {
   public:
    void deleteNode(ListNode* node) {
        node->val = node->next->val;
        ListNode* next = node->next;
        node->next = node->next->next;
        delete (next);
    }
};
int main() { return 0; }